import { request, config } from '../utils'
const { api } = config
const { addNotice, deleteNotice, pageNotice, findNotice, updateNotice} = api


//添加通知
export async function AddNotice(params) {
    return request({
        url: addNotice,
        method:'post',
        data:params
    })
}

//批量删除通知
export async function DeleteNotice(params) {
    return request({
        url: deleteNotice,
        method:'post',
        data:params,
        isNotJson: true,
    })
}

//分页查询通知
export async function queryPage(params){
    return request({
        url: pageNotice,
        method:'post',
        data:params
    })
}

//查看通知详情
export async function findNoticeDetail(params){
    return request({
        url: `${findNotice}/${params}`,
        method: 'POST',
    })
}

//修改通知
export async function updateNoticeDetail(params){
    return request({
        url: updateNotice,
        method: 'POST',
        data:params
    })
}

